package com.example.bank.service.user;

import com.example.bank.pojo.User;

import java.util.List;
import java.util.Map;

/**
 * @author ：Leeziqiang
 * @description：UserService接口
 * @date ：2021/12/3 20:47
 */
public interface UserService {

    User getById(String id);

    String findUserName(String id);

    Map<String, Object> login(String id, String username);

    List<User> listByAgentId(String agentId);

    String findRoleByUserId(String userId);

    String findPermByRoleId(Integer roleId);

    String findPermByUserId(String userId);

    Map<User, List<User>> listAll();

    User adminLogin(String username, String password);

    List<User> list();

    List<User> listAdministrator();

    List<User> listAgent();

    List<User> listSalesman();

    List<User> listSalesman2(String agentId);

    boolean assign(String userId, String bankArea);

    boolean toAdministrator(String userId);

    List<User> unBind(String userId);

    boolean bind(String userId, String agentId);

    boolean deleteRole(String userId);

    boolean withdrawPerm(String userId);

    boolean setRealName(String userId, String realName);

}
